// import { Rule, RuleType } from '@midwayjs/decorator';
import { ApiProperty } from '@midwayjs/swagger';
import { Rule, RuleType } from '@midwayjs/validate';
/**
 * 描述
 */
export class loginDTO {
  // 描述
  @ApiProperty({ example: 'asd', description: '账号'})
  @Rule(RuleType.string().required())
  username: string;

  @ApiProperty({ example: 'asd', description: '密码'})
  @Rule(RuleType.string().required())
  password: string;
}
